/**
 * Created by wuli等等 on 2017/2/28.
 */
import React, { Component, PropTypes } from 'react';
import { View, Text,StyleSheet  } from 'react-native';

export default class Header extends Component {

    render() {
        return (
                <View style={styles.header}>
                    <Text style={styles.headerText}>
                        {this.props.text || "标题头"}
                    </Text>
                </View>
        )
    }
}
const styles=StyleSheet.create({
    header: {
        backgroundColor: '#0767c8',
        height: 40,
        alignItems: 'center',
        justifyContent: 'center',
    },
    headerText: {
        color: '#ffffff',
        fontSize: 18,
    },
    text:{
        color:'#ffffff',
        fontSize:18,
    }

});